<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> 
<%@taglib prefix="lb" uri="http://www.itlaobing.cn/tags"%>

<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<title>会员管理</title>



<div class="spacer-xs">
				

<div class="row no-gutter">
	<div class="col-md-12">
		<div class="panel panel-default">
			<div class="panel-heading">
				
		<h4>会员列表</h4>
		</div>
		<div class="panel-body">
		<div class="row">
		

		
<form class="form-horizontal" action="${ctx }/members" method="get">
	<div class="col-xs-3">
		<input class="form-control" type="text" name="memberName" placeholder="搜索会员名称" value="${param.memberName}" /> 
	</div>
	<button type="submit" class="btn btn-success"><i class="glyphicon glyphicon-search"></i>查询</button>
</form>
	</div>	
	<div class="m-space10"></div>
				<div class="data-table">
		
		
<table class="table table-bordered table-hover" >
	<thead>
	<tr>
		<th>序号</th>
		<th>会员编号</th>
		<th>名称</th>
		<th>身份证号</th>
		<th>电话</th>
		<th>Email</th>
		<th>总消费额</th>
		<th>总消费次数</th>
		<th>操作</th>		
	</tr>
	</thead>
	<tbody>
	<c:forEach var="member" items="${members}" varStatus="stat">
	 <tr  id="row${member.id}">
		<th scope="row">${stat.index +1}</th>
		<td>${member.memberId}</td>
		<td>${member.memberName}</td>
		<td>${member.cardId}</td>
		<td>${member.telphone}</td>
		<td>${member.email}</td>
		<td>${member.remainingIntegral}</td>
		<td>${member.lastConsumerDate}</td>
		<td>
		<div class="btn-group" role="group" >
		<a href="${ctx}/members/${member.id}" class="btn btn-info " ><i class="glyphicon glyphicon-eye-open"></i></a> 
		</div>
		</td>
	</tr>
	</c:forEach>
	</tbody>
</table>
</div>
</div>
</div>
</div>
</div>

  <lb:pagination pager="${members}" />
</div>


